package com.koocloud.electroplatemanage.service;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.ProductionTask;
import com.koocloud.electroplatemanage.pojo.mainpojo.*;

//主要生产活动服务层
public interface MainProductionService {
    //通过pk查询生产计划实绩表
    public OrderResource selectOrderResourceByPk(int id);
    //新增生产计划实绩表
    public OrderResource insertOrderResource(OrderResource orderResource);
    //修改生产计划实绩表
    public OrderResource updateOrderResource(OrderResource orderResource);
    //
    ResponseTemplate selectOrderResourceAllData(String page, String limit,String beginTime,String endTime,String idOrName);


    //通过pk查询工单拆分表
    public OrderSplit selectOrderSplitByPk(int id);
    //新增工单拆分表
    public OrderSplit insertOrderSplit(OrderSplit orderSplit);
    //修改工单拆分表
    public OrderSplit updateOrderSplit(OrderSplit orderSplit);

    //通过pk查询路径表
    public Route selectRouteByPk(int id);
    //新增生产路径表
    public Route insertRoute(Route route);
    //修改生产路径表
    public Route updateRoute(Route route);

    //通过pk查询生产在工表
    public WIP selectWIPByPk(String workOrderNumber);
    //查询所有记录
    ResponseTemplate selectWIPAllData(String page, String limit, String beginTime, String endTime, WIP wip);
    //新增生产在工表
    public WIP insertWIP(WIP wip);
    //修改生产在工表
    public WIP updateWIP(WIP wip);
    //删除生产在工表
    public WIP deleteWIP(String workOrderNumber);


    //通过pk查询生产工单号表
    public WorkOrder selectWorkOrderByPk(String workOrderNumber);
    //新增生产工单号表
    public WorkOrder insertWorkOrder(WorkOrder workOrder);
    //修改生产工单号表
    public WorkOrder updateWorkOrder(WorkOrder workOrder);
    //修改当前位置
    public ResponseTemplate updateLocation(String userId, String location);
    //根据id查找路由
    ResponseTemplate selectRouteById(String routeId);
    //通过工单号查询生产实绩表列表数据
    ResponseTemplate selectOrderResourceListByWON(String workOrderNumber);

    //通过工单号查询一条数据
    ResponseTemplate selectWIPByWON(String workOrderNumber);
}
